-- GENERATED SPELL FOR [Lashh'an Wing Guard] --


function spell0_19944(pUnit, Event) --@Angry Arakkoa Ghost,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(36888,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_19944', 1, 1)
end

function spell1_19944(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(37577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19944', 591, 1)
end

function Sorts_19944(pUnit, Event)
local choix_sorts_19944 = math.random(0, 1)
if choix_sorts_19944 == 0 then
pUnit:RegisterEvent('spell0_19944', 1, 1)
end
if choix_sorts_19944 == 1 then
pUnit:RegisterEvent('spell1_19944', 1, 1)
end
end

function mob19944_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19944', math.random(1500, 3000), 1)
end

function mob19944_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19944_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19944_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19944, 1, 'mob19944_Action')
RegisterUnitEvent(19944, 2, 'mob19944_Leave')
RegisterUnitEvent(19944, 3, 'mob19944_Kill')
RegisterUnitEvent(19944, 4, 'mob19944_Die')
